package com.marvels.approve.process.service;


import com.github.pagehelper.Page;
import com.marvels.approve.process.dto.FaceScreenConditionDTO;
import com.marvels.approve.process.dto.TimeConfHistoryDTO;
import com.marvels.common.exception.MarvelsBusinessException;

public interface ITimeConfHistoryService {

	/**
	 * 分頁查询参数配置明细
	 * @param condition
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public Page<TimeConfHistoryDTO> selectFaceSigConfiguractionPage(Integer pageNo,Integer pageSize)
			throws MarvelsBusinessException;
	
	
	/**
	 * 查询面签筛选条件
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public FaceScreenConditionDTO getFaceScreenCondition()
			throws MarvelsBusinessException;;
			
			

	/***
	 * 更新配置參數和明細
	 * 
	 * @param faceSigConfigurationDTO
	 * @param timeConfHistoryDTO
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int updateFaceSigConfAndTimeconf(TimeConfHistoryDTO timeConfHistoryDTO) throws MarvelsBusinessException;

	/**
	 * 
	 * 增加參數配置
	 * 
	 * @param timeConfHistoryDTO
	 * @return
	 */
	public int insertTimeConfHistory(TimeConfHistoryDTO timeConfHistoryDTO) throws MarvelsBusinessException;;

	/**
	 * 修改參數配置
	 * 
	 * @param record
	 * @return
	 */
	public int updateTimeConfHistory(TimeConfHistoryDTO timeConfHistoryDTO) throws MarvelsBusinessException;;

	/**
	 * 新增參數配置和參數明細
	 * 
	 * @param timeConfHistoryDTO
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int addTimeConfHistoryAndTimeConf(TimeConfHistoryDTO timeConfHistoryDTO) throws MarvelsBusinessException;

	/**
	 * 查询配置详情
	 * 
	 * @param id
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public TimeConfHistoryDTO getTimeConfDetailed(long id,long facesigId) throws MarvelsBusinessException;
	
	
	public TimeConfHistoryDTO selectKyTimeId(long id) throws MarvelsBusinessException;
}